package edu.sctu.practice.class02.Wangpeng.Dtest2;

/**
 * Created by wp on 2015/11/25.
 */
public class Client {
    public static void main(String[] args) {
        int a[]={0,0};
        int num=1,result=0;
        try {
            result=num/0;
            System.out.println(num/a[2]);
        }
        catch (ArithmeticException e){
            System.out.println("ERROR"+e);
        }
        catch (ArrayIndexOutOfBoundsException e){
            System.out.println("Error"+e);
        }
        catch (Exception e){
            System.out.println("OTHER ERROR");
        }
    }
}
